package com.julyup.quartz.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @Author: zhenzhong.wang@honeywell.com
 * @Date: 2019/3/20 12:30 PM
 */
public class HelloJob implements Job {

  @Override
  public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
//    Object name = jobExecutionContext.getJobDetail().getJobDataMap().get("name");
    Object name = jobExecutionContext.getTrigger().getJobDataMap().get("name");
    System.out.println(name);
    System.out.println(123);
  }
}
